package com.gruopbuying.agent.dao;

import com.gruopbuying.agent.pojo.StoreAgentAccountDO;
import com.gruopbuying.agent.pojo.StoreOperDTO;
import com.gruopbuying.agent.pojo.StoreShopManagePageDTO;
import com.gruopbuying.agent.utils.Query;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Mapper
public interface StoreAgentAccountDao {

    int count(Map<String, Object> map);

    StoreAgentAccountDO get(String accountId);

    /**
     * 门店查询管理列表页
     * @param query
     * @return
     */
    List<StoreShopManagePageDTO> getListByManagePage(Query query);

    /**
     * 门店查询运营人员
     * @param query
     * @return
     */
    List<StoreOperDTO> getStoreOpersList(Query query);

    List<StoreAgentAccountDO> list(Map<String, Object> map);
}
